package com.kedacom.freedomLabel.model.excel;

import android.support.annotation.NonNull;

import com.kedacom.freedomLabel.excel.AdditionalColumn;
import com.kedacom.freedomLabel.excel.IRowRecord;
import com.kedacom.freedomLabel.excel.ISheetRecord;
import com.kedacom.freedomLabel.model.bean.Item;

import java.util.List;

public class ItemSheet implements ISheetRecord {
    private List<Item> rowRecords;

    public ItemSheet(List<Item> rowRecords){
        this.rowRecords = rowRecords;
    }

    @Override
    public String sheetName() {
        return "ID";
    }

    @NonNull
    @Override
    public String[] columnNames() {
        return new String[]{"编号","分组","内容","备注"};
    }

    @NonNull
    @Override
    public AdditionalColumn[] additionalColumnNames() {
        return new AdditionalColumn[0];
    }

    @NonNull
    @Override
    public List<? extends IRowRecord> getRowRecords() {
        return this.rowRecords;
    }
}
